<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  <title>砸金蛋</title>
</head>

<body>
  <div id="app">
    loading
  </div>
  <!-- built files will be auto injected -->
</body>
<script>
  (function () {
    window.person = {
      token: "55475773246993500",
      uuid: "928b4d96-687d-4b4b-85b2-bd4b02d4f553",
      user_id: "55475773246993500"
    };
  })()

  function yearShare(shareTitle, obj, img) {
      var user_id = $('#user_id').val();
      var url = window.location.href;
      var address = host;
      var imgurl;
      url = url.replace(/\?/g, '/')
      url = url.replace(/\=/g, '/')
      url = url.replace(/\&/g, '/')
      if (navigator.userAgent.toLowerCase().indexOf('miniprogram') != -1) {
        alert('请点击小程序右上方进行分享');
      } else {
        window.$.app.share({
          "title": shareTitle,
          "content": obj || '活动正在进行中',
          "imgUrl": imgurl || "http://tjjstatic.taojiji.com/webtjj/default/images/index/tjj_logo.png",
          "shareUrl": url + "/isshare/1",
          "shareType": 0,
        });
      }
    }
</script>

</html>